<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>

    // setInterval(() => {
    //     const url = "http://music.163.com/api"
        const url = "http://localhost:8888"
        let result = fetch(url+"/test", {
            method: "GET",
            headers: {
                "Content-Type": "application/json; charset=utf-8",
            },
            mode: "cors"
        }).then(
            resp => resp.json()
        ).then(
            resp => console.log(resp)
        )
        // ).then(
        //     resp => console.log(resp)
        // ).catch(err => {
        //     console.log(err)
        // })
    // }, 3000)

</script>
</html>